/*
 * Project Name spring-boot-tools
 * File Name MinaConfig
 * Package Name com.huxiaosu.tools.mina.config
 * Create Time 2024/5/25
 * Create by name：liujie
 */
package com.huxiaosu.tools.mina.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Description
 *
 * @author liujie
 * @date 2024/5/25 12:02
 */
@Data
@Component
@ConfigurationProperties(MinaConfig.PREFIX)
public class MinaConfig {
    public static final String PREFIX = "tools.mina";
    /**websocket 监听的地址*/
    private String host;
    /**websocket 监听的端口*/
    private int port;
    /**websocket 心跳间隔时间*/
    private int heartBeat;
    /**websocket 是否开始ssl*/
    private boolean enableSsl;
    /**websocket ssl证书地址*/
    private String keystore;
    private String truststore;
}
